#include<stdio.h>
#include<time.h>

/*
 * time
 * localtime
 * gmtime
 * mktime
 * timelocal
 * timegm
 * gettimeofday
 * strftime
 * strptime
 * */
int main(int argc, char *argv[])
{
	time_t t= 0;
	t = time(NULL);
	printf("timep: %d\n",t);
	struct tm *p;
	p = localtime(&t);
	printf("localtime: %04d%02d%02d %02d:%02d:%02d\n", p->tm_year+1900, p->tm_mon+1, p->tm_mday, p->tm_hour, p->tm_min, p->tm_sec);
	
	return 0;
}
